package com.oracle.pojo;

import java.io.Serializable;
import java.util.Date;
/**
 * 
* @ClassName: SysRoleEntity 
* @Description: 系统角色实体类
* @author Jencks 
* @date 2017年4月25日 下午8:31:28 
*
 */
public class SysRole implements Serializable{

	private static final long serialVersionUID = 1l;

	private Integer id;
	private String roleName;
	private String remark;
	private Integer state;
	private Integer creator;
	private Date createTime;
	private String roleCode;
	public String getRoleCode() {
		return roleCode;
	}
	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}
	public void setId(Integer id){
		this.id = id;
	}
	public Integer getId(){
		return id;
	}
	public void setRoleName(String roleName){
		this.roleName = roleName;
	}
	public String getRoleName(){
		return roleName;
	}
	public void setRemark(String remark){
		this.remark = remark;
	}
	public String getRemark(){
		return remark;
	}
	public void setState(Integer state){
		this.state = state;
	}
	public Integer getState(){
		return state;
	}
	public void setCreator(Integer creator){
		this.creator = creator;
	}
	public Integer getCreator(){
		return creator;
	}
	public void setCreateTime(Date createTime){
		this.createTime = createTime;
	}
	public Date getCreateTime(){
		return createTime;
	}
	@Override
	public int hashCode() {
		return roleName.hashCode()+id;
	}
	@Override
	public boolean equals(Object obj) {
		return this.id==((SysRole)obj).getId();
	}
	
}